package com.net.web.server.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * 服务端配置bean
 *
 * @author hjh
 */
@Configuration
@Setter
@Getter
public class ServerConfig {

    @Value("${net.enable-cache}")
    private boolean enableCache;

    @Value("${net.time-out}")
    private int timeOut;

    @Value("${net.port}")
    private int netPort;

    @Value("${net.enable-ip}")
    private boolean enableIp;

    @Value("${net.ip-num}")
    private int ipNum;
}
